package DroidEye.Properties;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.sql.SQLException;

import javax.sql.DataSource;

public class Main {
    public static void main(String[] args) throws SQLException {
        ApplicationContext ctx =
                new ClassPathXmlApplicationContext("beans-properties.xml");

        DataSource dataSource = (DataSource) ctx.getBean("dataSource");

        System.out.println(dataSource.getConnection().toString());
    }
}
